<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends BaseAction {
    public function index(){
        $temps = M("temps");
        $li[1] = $temps->where("rate = 1 and num >0")->order("ftime desc")->limit("0,5")->select(); //100%分成比例
        $li[2] = $temps->where("rate = 0.7 and num >0")->order("ftime desc")->limit("0,5")->select(); //70%分成比例
        $li[3] = $temps->where("rate = 0.5 and num >0")->order("ftime desc")->limit("0,5")->select(); //50%分成比例
	//dump($_SESSION);
        $slides = M("slides");
        $pic = $slides->where("str = 1")->order("sort asc,ftime desc")->limit("0,5")->select(); //获取幻灯片
        $this->assign("pic", $pic);
        $this->assign("list", $li);
	$this->display();
    }
}